package edu.hunau.cxb19.oop.class29;

import org.junit.Test;

/**
 *
 * @author hb
 *
 *         2020-04-09 16:02:21
 */
public class ThreadAPITest {

	public static void main(String[] args) {
          Thread t1=new Thread("my-thread-01") {
        	  public void run() {
        		for (int i = 0; i <100; i++) {
					System.out.println(Thread.currentThread().getName()+":"+i);
				}
        	  } 
          };
          t1.start();
          
          for (int i = 0; i <100; i++) {
				System.out.println("\t"+Thread.currentThread().getName()+":"+i);
			}
	}
	
	@Test
	public void test01() {
		System.out.println(Thread.currentThread().getName());
	}
}
